aio: use iocb_put() instead of open coding it
authorJens Axboe <axboe@kernel.dk>
Sun, 25 Nov 2018 04:33:09 +0000 (21:33 -0700)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 19 Jun 2019 22:16:58 +0000 (23:16 +0100)
commit950696717a0d5b29bec19cb6f9ff15a3067d9f8d
tree072b3d79c85ac5337b1239e90fd551ebd436a128
parentaba96398de457d4cb4938021a01d7f5334a1ace1
aio: use iocb_put() instead of open coding it

commit 71ebc6fef0f53459f37fb39e1466792232fa52ee upstream.

Replace the percpu_ref_put() + kmem_cache_free() with a call to
iocb_put() instead.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name 0005-aio-use-iocb_put-instead-of-open-coding-it.patch
fs/aio.c